package com.dingdang.feign.callback;

import com.dingdang.data.Result;
import com.dingdang.dto.OrderDetailsDTO;
import com.dingdang.feign.ReserveFeign;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class ReserveFeignCallBack implements ReserveFeign {

    private Logger logger = LoggerFactory.getLogger(ReserveFeignCallBack.class);
    @Override
    public Result createOrder(OrderDetailsDTO orderDetailst) {
        logger.error("调用服务熔断了");
        return Result.FALLEOVER();
    }

    @Override
    public String OrderPay(String orderId, String orderPrice, String ordername, String orderbody) {
        logger.error("调用服务熔断了");
        return "GG";
    }
}
